package com.byxy.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Repository;

import com.byxy.dao.OrderDao;
import com.byxy.entity.Order;
import com.byxy.service.OrderService;
@Repository
public class OrderServiceImpl implements OrderService {
	@Resource
	private OrderDao orderDao;

	@Override
	public void add(Order s) {
		orderDao.add(s);
		
	}

	@Override
	public void delete(Order s) {
		orderDao.delete(s);
		
	}

	@Override
	public void update(Order s) {
		orderDao.update(s);
		
	}

	@Override
	public List<Order> find() {
		return orderDao.find();
	}

	@Override
	public List<Order> find(int pos, int rows) {
		
		return orderDao.find(pos, rows);
	}

	@Override
	public Order get(String id) {
		
		return orderDao.get(id);
	}

	@Override
	public long count() {
		
		return orderDao.count();
	}
	
	
}
